package com.cloud.pole.api.rabbit;

import lombok.Data;
import java.io.Serializable;

/**
 * @Author: Frank Chen
 * @Date: 2020/3/6 11:21
 */
@Data
public class DLXMessage<T> implements Serializable {
    private static final long serialVersionUID = 9956432152000L;
    private String exchange;
    private String queueName;
    private T content;
    private long times;

    public DLXMessage(String queueName, T content, long times) {
        super();
        this.queueName = queueName;
        this.content = content;
        this.times = times;
    }

    public DLXMessage(String exchange, String queueName, T content, long times) {
        super();
        this.exchange = exchange;
        this.queueName = queueName;
        this.content = content;
        this.times = times;
    }
}
